<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Title</title>
</head>
<body>

<script>


  const obj = new Object();

  const obj1 ={
    name: 'xiaoliang',
    age:24,
    run:function (){
      console.log('在学vue');
    },
    eat:function (){
      console.log('在吃东西');
    }
  };


  //es6 函数的增强写法

  const obj2 ={

    run(){
      console.log('跑步');
    },
    eat(){
      console.log('吃饭');
    }


  }


</script>

</body>
</html>